import javax.swing.text.Style;
import java.util.Scanner;

public class zjy3 {
    public static  void main(String[] args){

  System.out.println("请输入一个整数");
        Scanner scanner = new Scanner(System.in);
        int a=scanner.nextInt();
        if (a<6&a>3) {
            System.out.println("是");
        }
        else {
            System.out.println("不是");
        }
        System.out.println("请输入一个整数");
        Scanner  anner = new Scanner(System.in);
        int b=anner.nextInt();
        if (b%3==0 &b%7==0) {
            System.out.println("是");
        }
        else {
            System.out.println("不是");
        }

    }
}


